nth highest salary in sql using correlated subquery